import 'dart:async';

import 'package:flutter/material.dart';

class Start extends StatefulWidget {
  @override
  _StartState createState() => _StartState();
}

class _StartState extends State<Start> {
  int currentTimer = 6;

  @override
  void initState() {
    // TODO: implement initState
    super.initState();
  }

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      body: InkWell(
        child: Stack(
          children: [
            Image.asset(
              "assets/images/start_bg.png",
              width: MediaQuery.of(context).size.width,
              height: MediaQuery.of(context).size.height,
              fit: BoxFit.cover,
            ),
            // Positioned(
            //   child: Image.asset("assets/images/logo.png"),
            //   top: MediaQuery.of(context).padding.top + 100,
            //   left: MediaQuery.of(context).size.width / 4,
            // ),
            Center(
              child: Column(
                children: [
                  Row(
                    children: [
                      Text(
                        "",
                        style: TextStyle(
                          color: Colors.amber[900],
                          fontFamily: "pang",
                          fontSize: 40,
                        ),
                      ),
                    ],
                    mainAxisAlignment: MainAxisAlignment.center,
                  ),
                ],
                mainAxisAlignment: MainAxisAlignment.center,
              ),
            ),
            Positioned(
              bottom: MediaQuery.of(context).padding.bottom + 150,
              left: MediaQuery.of(context).size.width / 3,
              child: ClipRRect(
                borderRadius: BorderRadius.circular(20),
                child: Container(
                  child: InkWell(
                      child: JoinButton(),
                      onTap: () {
                        Navigator.of(context).pushNamed("home");
                      }),
                  width: 160,
                  height: 40,
                  alignment: Alignment.center,
                ),
              ),
            ),
          ],
        ),
        onTap: () {
          Navigator.of(context).pushReplacementNamed("home");
        },
      ),
    );
  }
}

class JoinButton extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return Text(
      "",
      style: TextStyle(
        fontFamily: "pang",
        color: Colors.white,
        fontSize: 35,
        wordSpacing: 0.0,
      ),
    );
  }
}
